<template>
  <div>
    <div class="box-a"></div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped>
.box-a {
  width: 100px;
  height: 100px;
  border-radius: 50px;
  position: relative;
  animation: myframe 3s infinite;
}

@keyframes myframe {
  0% {
    background: red;
    top: 0px;
    left: 0px;
  }
  25% {
    background: yellow;
    top: 200px;
    left: 0px;
  }
  50% {
    background: blue;
    top: 200px;
    left: 200px;
  }
  75% {
    background: green;
    top: 0px;
    left: 200px;
  }
  100% {
    background: red;
    top: 0px;
    left: 0px;
  }
}
</style>